package cn.wolfcode.edu.service;

import cn.wolfcode.edu.domain.Employee;
import cn.wolfcode.edu.query.EmployeeQueryObject;
import cn.wolfcode.edu.query.QueryObject;
import cn.wolfcode.edu.util.PageResult;

import java.util.List;

/**
 * Created by abb on 2018-07-08.
 */
public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee entity);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee entity);

    PageResult query(EmployeeQueryObject qo);
    List<Employee> queryForList(EmployeeQueryObject qo);
    void deleteToClose(Long id);

    Employee selectByUsername(String username);

    /**
     * 陈遵汉 专有 勿删
     * 查询潜在客户移交历史的页面的下拉框的内容
     * @return
     */
    List<Employee> selectEmployeeByHan();

    /**
     * 陈遵汉 专有 勿删
     * 根据角色编码 查询所有的班主任
     * @return
     */
    List<Employee> listAllEmployeeBySn(String sn);

    /**
     * 查询出所有的Employee
     */
    List<Employee> listAll();

    Employee selectByRealName(String contents);
}
